<template>
	<view class="page-index">
		{{id}}
	</view>
</template>

<script>
	export default {
		onLoad(query) {
			// scene 需要使用 decodeURIComponent 才能获取到生成二维码时传入的 scene
			this.id = decodeURIComponent(query.scene).id || '7691d93a92c243538e91257877eb38c6'

		},
		data() {
			return {
				id: ''
			}
		},
	}
</script>

<style scoped lang="scss">
	::v-deep {
		.u-grid {
			// height: 100rpx;
		}
	}

	.page-index {
		.grid-container {
			padding: 40rpx 0;

			img {
				width: 70rpx;
				height: 70rpx;
			}

			.grid-text {
				color: $uni-text-color;
				margin-top: 15rpx;
			}
		}

		.card-container {
			background-color: $uni-bg-color-grey;
			padding: 20rpx;

			.item {
				padding: 20rpx;
			}
		}
	}
</style>